package com.common;

import lombok.Data;

@Data
public class ServiceException extends RuntimeException {
    String code;

    public ServiceException(String code, String message) {
        super(message);
        this.code = code;
    }

    String msg;//异常消息

    public ServiceException(String code, String msg, Throwable e) {
        super(e);
        this.msg = msg;
        this.code = code;
    }
}
